package com.art.sunflower.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AdminMapper {

    @Select("select id, real_name, phone, username from user where role = #{role}")
    List<Map<String, Object>> selectList(String role);
}
